package org.gd.hellojaxb.simple;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * @author Gorhover
 * @since 2.0.2
 * @param <E>
 */
@XmlRootElement(name = "list")
@XmlAccessorType(XmlAccessType.NONE)
public class SimpleXmlList<E> extends ArrayList<E> {

    public SimpleXmlList(Collection<? extends E> c) {
        super(c);
    }

    public SimpleXmlList(int initialCapacity) {
        super(initialCapacity);
    }

    public SimpleXmlList() {
        super();
    }

    @XmlElement(name = "row")
    @SuppressWarnings("unused")
    private SimpleXmlList<E> getThis() {
        return this;
    }
}
